<template>
  <div>
    <p>自定义hook</p>
    <p>鼠标点击的位置: x:{{ point.x }} --y:{{ point.y }}</p>
  </div>
</template>

<script>
// import { reactive, onMounted, onUnmounted } from "vue";

import getpoint from "@/hook/getpoint";
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },
  setup() {
    let point = getpoint();

    return {
      point,
    };
  },
};
</script>
<style scoped>
</style>